package com.yonyou.jrmob.contacts.schedule.vo;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/7/26.
 */
public class SelectContactsVO implements Parcelable{

    private String contactName;//联系人姓名
    private String cuserId;//联系人ID
    private boolean ischange;//是否改变

    public SelectContactsVO() {

    }

    public SelectContactsVO(Parcel in) {
        contactName = in.readString();
        cuserId = in.readString();
        ischange = in.readByte()!=0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(contactName);
        dest.writeString(cuserId);
        dest.writeByte((byte)(ischange ?1:0));
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<SelectContactsVO> CREATOR = new Creator<SelectContactsVO>() {
        @Override
        public SelectContactsVO createFromParcel(Parcel in) {
            return new SelectContactsVO(in);
        }

        @Override
        public SelectContactsVO[] newArray(int size) {
            return new SelectContactsVO[size];
        }
    };


    @Override
    public String toString() {
        return "SelectContactsVO{" +
                "contactName='" + contactName + '\'' +
                ", cuserId='" + cuserId + '\'' +
                ", ischeck=" + ischange +
                '}';
    }

    public String getCuserId() {
        return cuserId;
    }

    public void setCuserId(String cuserId) {
        this.cuserId = cuserId;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public boolean getIschange() {
        return ischange;
    }

    public void setIschange(boolean ischange) {
        this.ischange = ischange;
    }
}
